package com.qf.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: SpringCloud2
 *
 * @author dongshihao
 * Date:2021/9/15   19:53
 * description:
 */
@RestController
public class TestController {

    @Value("${server.port")
    public Integer port;


    @GetMapping("/provider/test")
    public String test() {
        return "hello Provider !" + port;
    }


}

//请求方式不对405